<?php
?>
          // create the XMLHttpRequest object
          var request;
          try { request = new XMLHttpRequest(); }
          catch(e)
          {
               try { request = new ActiveXObject("Msxml2.XMLHTTP"); }
               catch(e)
               {
                    try { request = new ActiveXObject("Microsoft.XMLHTTP"); }
                    catch(e)
                    {
                         alert("Your browser will not support this webpage.");
                         return false;
                    }
               }
          }
<?php
?>